package com.beeantec.jnrerc.modules.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.beeantec.jnrerc.core.api.dto.PagingReqDTO;
import com.beeantec.jnrerc.dto.MemberWbookDTO;
import com.beeantec.jnrerc.entity.MemberWbook;
import com.beeantec.jnrerc.entity.PaperQuAnswer;

import java.util.List;

/**
* <p>
* 错题本业务类
* </p>
*
* @author Anthony
* @since 2020-05-27 17:56
*/
public interface MemberWbookService extends IService<MemberWbook> {

    /**
    * 分页查询数据
    * @param reqDTO
    * @return
    */
    IPage<MemberWbookDTO> paging(PagingReqDTO<MemberWbookDTO> reqDTO);

    /**
     * 加入错题本
     * @param quId
     * @param examId
     */
    void addBook(String examId, String quId,Integer paperId,String userId);

    /**
     * 查找第一个错题
     * @param quId
     * @param examId
     * @return
     */
    String findNext(String examId, String quId,String userId);


    List<PaperQuAnswer> findPaperError(String examId, Integer paperId, String userId) ;

    }
